module.exports = appInfo => {
  const config = {};

  config.keys = '23485321AE4D212';

  config.middleware = [
      'access',
      'exception',
      // 'apiauth'
  ];
  config.apiauth = {
      match: /\/api/
  };
  config.security = {
      csrf: {
          ignore: '/api',
          ignoreJSON: true, // 默认为 false，当设置为 true 时，将会放过所有 content-type 为 `application/json` 的请求
      },
  };
  config.i18n = {
      defaultLocale: 'zh-CN',
  };
  config.sequelize = {
      dialect: 'mysql',
      database: 'mylock',
      host: '127.0.0.1',
      port: 3306,
      username: 'root',
      password: '123456',
      timezone: '+08:00',
      pool: {
          max: 5,
          min: 0,
          idea: 10000,
          acquire: 10000,
          evict: 10000,
      },
      // seederStorage: 'sequelize',
      // seederStorageTableName: 'sequelize_data',
  };

  return config;
}